package com.wyb.mapper;

import com.wyb.pojo.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wyb
 * @since 2022-10-14
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    @Insert("insert into sys_user_role (user_id,role_id) values (#{user_id},2)")
    int insertId(Long user_id);

}

